package cn.bob.org.mapper;

import cn.bob.org.domain.Writer;
import cn.bob.org.query.WriterQuery;

import java.util.List;

public interface WriterMapper {

    // 查询全部
    List<Writer> findAllWriter();

    // 查询单条
    Writer findWriterById(Long id);

    // 删除
    void deleteWriter(Long id);

    // 添加
    void addWriter(Writer writer);

    // 修改
    void updateWriter(Writer writer);

    // 查询所有条数
    Integer queryByCount(WriterQuery query);

    // 分页查询
    List<Writer> queryByPage(WriterQuery query);


}
